package cn.edu.xmu.oomall.share.microservice;

import cn.edu.xmu.oomall.share.microservice.vo.OrderItemVo;
import cn.edu.xmu.oomall.share.microservice.vo.SimpleOrderVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author HertzLiu
 * @create_time 2021/12/17 10:12
 * @package_name cn.edu.xmu.oomall.liquidation.microservice
 * @project_name oomall
 * @product_name IntelliJ IDEA
 * @description
 * @modifiedBy XJX
 * @date 2021-12-22 03:41:56
 * 删除不必要的方法
 */

@FeignClient("order-service")
public interface OrderService {
    /**
     * 根据id获取Order
     *
     * @param id 订单id
     * @return 订单
     * TODO:尚未与订单模块集成
     */
    @GetMapping("/")
    public InternalReturnObject<SimpleOrderVo> getOrderById(Long id);

    /**
     * 根据id获取OrderItem
     *
     * @param id 订单明细id
     * @return 订单明细
     * TODO:尚未与订单模块集成
     */
    @GetMapping("/")
    public InternalReturnObject<OrderItemVo> getOrderItemById(Long id);
}
